{% extends "base.html" %}
{% block style %}
<link rel="stylesheet" href="/site_media/view.css" type="text/css" />
{% endblock %}
{% block title %}Favorite People{% endblock %}
{% block head %}Favorite People{% endblock %}
{% block content %}
	<div id='listings'>
		<table class="t">
			  <tr>
				  <th scope="col">Name</th>
				  <th scope="col">Statement</th>
				  <th scope="col">Resume</th>
				  <th scope="col">Last Modified</th>
				  <th scope="col">Delete</th>
			  </tr>
			{% for entry in list %}
				<tr>
					<td>{{ entry.first_name }} {{entry.last_name}}</td>
					<td>{{ entry.account.personal_statement|truncatewords:10 }}</td>
					<td>
						{% if entry.account.view_resume and entry.account.resume %}						
							<a href="/resume/{{ entry.username }}" >
								Download
							</a>
						{% endif %}
					</td>
					<td>{{ entry.account.last_modified }}</td>
					<td>
							<a href="/user/remove/{{ entry.username }}/" >
								Remove
							</a>
					</td>

				</tr>
			{% endfor %}
		</table>
	</div>
{% endblock %}
